package com.coco.group.feign;

import com.coco.common.alipayparam.PayVo;
import com.coco.common.annotation.IngoreResponseAdvice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/7/30 20:50
 */
@FeignClient("coco-third-party")
@RequestMapping("/aliPay")
public interface AlipayFeign {

    /**
     * 支付接口
     * @param payVo
     * @return
     */
    @RequestMapping(value = "/groupAilPay",produces = "text/html")
    @IngoreResponseAdvice
    public String groupAilPay(@RequestBody PayVo payVo);

    /**
     * 退款接口
     * @param trade_no
     * @return msg
     *
     */
    @RequestMapping(value = "/reFund/{trade_no}")
    public String aliReFund(@PathVariable("trade_no") String trade_no);
}
